package com.winning.esb.controller.monitor.utils;

import java.util.Map;

/**
 * @Author Lemod
 * @Version 2018/3/10
 */
public class ControllerResponseUtil {
    public static void generateSuccessResponse(Map result)
    {
        result.put("success", Boolean.valueOf(true));
        result.put("errorMsg", null);
    }

    public static void generateFailResponse(Map result, Exception e)
    {
        result.put("success", Boolean.valueOf(false));
        result.put("errorMsg", e.getMessage());
    }
}
